#!/bin/sh
APP="jmdkina"

echo "Rebuild by <jmdkina@gmail.com>"

export GOPATH=/Users/jmdvirus/Documents/proj/jkgo/goproj
export GOPATH=$GOPATH:${PWD}
echo "$GOPATH"

if [ -f bin/${APP} ]; then
    rm bin/${APP}
fi

rm -rf pkg/*

cd src
echo "Building ${APP}"
go build .
go install .

if [ -f src ]; then
    mv ./src ../bin/${APP}
#    cd ../bin
#    ./$APP -addr=${ADDR} -config=${CONFIGPATH}
fi
cd ..
